'''
类 造物主设计的模板
属性
方法

对象 根据模板创造的真的实体

'''

class GirlFriend:
    name:str|None = None,
    age = None,
    weight = None

    def __init__(self,name,age,weight,studentId):

        self.name = name
        self.age = age
        self.weight = weight
        self.studentId = studentId
    def __str__(self):

        return f"名字是{self.name},今年刚满{self.age}岁~~~~~~~~"

    def song(self):

        print(f"啦啦啦我的名字叫{self.name}")

#创建一个对象
gf = GirlFriend('消防',19,100,1001)
# gf.name = '小芳'
#
# gf.studentId = 1001
gf.song()

print(gf.studentId)

print(gf)